<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required,mobile" class="form-control" name="row[mobile]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-person" class="control-label col-xs-12 col-sm-2">{:__('Person')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-person" data-rule="required" class="form-control" name="row[person]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-scale" class="control-label col-xs-12 col-sm-2">{:__('Scale')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-scale" data-rule="required" class="form-control selectpicker" name="row[scale]">
                {foreach name="scaleList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-integration" class="control-label col-xs-12 col-sm-2">{:__('Integration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-integration" data-rule="required" class="form-control" name="row[integration]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-setup_time" class="control-label col-xs-12 col-sm-2">{:__('Setup_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-setup_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[setup_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-setup_addr" class="control-label col-xs-12 col-sm-2">{:__('Setup_addr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-setup_addr" class="form-control" name="row[setup_addr]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-is_pay" class="control-label col-xs-12 col-sm-2">{:__('Is_pay')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_pay" data-rule="required" class="form-control selectpicker" name="row[is_pay]">
                {foreach name="isPayList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-year_fee" class="control-label col-xs-12 col-sm-2">{:__('Year_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-year_fee" data-rule="required" class="form-control" step="0.01" name="row[year_fee]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-sum_income" class="control-label col-xs-12 col-sm-2">{:__('Sum_income')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sum_income" data-rule="required" class="form-control" step="0.01" name="row[sum_income]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-wallet_money" class="control-label col-xs-12 col-sm-2">{:__('Wallet_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wallet_money" data-rule="required" class="form-control" step="0.01" name="row[wallet_money]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-city" class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value=""></div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-website" class="control-label col-xs-12 col-sm-2">{:__('Website')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-website" class="form-control" name="row[website]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-wechat" class="control-label col-xs-12 col-sm-2">{:__('Wechat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wechat" class="form-control" name="row[wechat]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-is_company" class="control-label col-xs-12 col-sm-2">{:__('Is_company')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_company" data-rule="required" class="form-control selectpicker" name="row[is_company]">
                {foreach name="isCompanyList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-heldsdata" class="control-label col-xs-12 col-sm-2">{:__('Heldsdata')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="checkbox">
            {foreach name="heldsdataList" item="vo"}
            <label for="row[heldsdata][]-{$key}"><input id="row[heldsdata][]-{$key}" name="row[heldsdata][]" type="checkbox" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-area" class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area" class="form-control" name="row[area]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-post" class="control-label col-xs-12 col-sm-2">{:__('Post')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-post" class="form-control" name="row[post]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-state" class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="state 0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
